﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="logs.aspx.cs" Inherits="logs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h1 style="text-align: center">
        Transaction logs<br />
    </h1>
    user : 
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Underline="True"></asp:Label>
    <br />
    Từ ngày : 
    <asp:TextBox ID="TextBox1" runat="server" Width="36px"></asp:TextBox>
&nbsp;tháng : 
    <asp:TextBox ID="TextBox2" runat="server" Width="36px"></asp:TextBox>
&nbsp;năm :
    <asp:TextBox ID="TextBox3" runat="server" Width="90px"></asp:TextBox>
    <br />
    Đến ngày : 
    <asp:TextBox ID="TextBox4" runat="server" Width="36px"></asp:TextBox>
&nbsp;tháng : 
    <asp:TextBox ID="TextBox5" runat="server" Width="36px"></asp:TextBox>
&nbsp;năm :
    <asp:TextBox ID="TextBox6" runat="server" Width="90px"></asp:TextBox>
    <br />
    Phân theo loại : 
    <asp:DropDownList ID="DropDownList1" runat="server">
        <asp:ListItem>All</asp:ListItem>
        <asp:ListItem Value="NapTien">Nạp tiền</asp:ListItem>
        <asp:ListItem Value="RutTien">Rút tiền</asp:ListItem>
        <asp:ListItem Value="ChuyenKhoan-Gui">Gửi chuyển khoản</asp:ListItem>
        <asp:ListItem Value="ChuyenKhoan-Nhan">Nhận chuyển khoản</asp:ListItem>
        <asp:ListItem Value="ChuyenKhoan">Chuyển Khoản</asp:ListItem>
    </asp:DropDownList>
&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" Text="Search" onclick="Button1_Click" />
    <br />    
    <asp:Label ID="Label2" runat="server" Text="Ngày tháng không chính xác" 
        Font-Italic="True" ForeColor="Red" Visible="False"></asp:Label>
    <br />    
    <br />    
    <div style="width: 100%">
        <asp:GridView ID="GridView1" runat="server" HorizontalAlign="Center" 
            Width="100%" AutoGenerateColumns="False" BackColor="White" 
            BorderColor="#E7E7FF" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
            DataKeyNames="LogId" GridLines="Horizontal" AllowSorting="True" 
            onsorting="GridView1_Sorting" AllowPaging="True" 
            onpageindexchanging="GridView1_PageIndexChanging" PageSize="5">
            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" BorderStyle="Solid" BorderWidth = "1px"/>
            <Columns>
                <asp:BoundField DataField="LogId" HeaderText="Log Id" InsertVisible="False" 
                    ReadOnly="True" SortExpression="LogId">
                <ItemStyle Height="60px" HorizontalAlign="Center" VerticalAlign="Middle" BorderStyle="Solid" BorderWidth = "1px"/>
                </asp:BoundField>
                <asp:BoundField DataField="LogDetails" HeaderText="Log Details" 
                    SortExpression="LogDetails">
                <ItemStyle Width="50%" BorderStyle="Solid" BorderWidth = "1px"/>
                </asp:BoundField>
                <asp:BoundField DataField="LogDate" HeaderText="Time" SortExpression="LogDate">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" BorderStyle="Solid" BorderWidth = "1px"/>
                </asp:BoundField>
                <asp:BoundField DataField="LogType" HeaderText="Type" SortExpression="LogType">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" BorderStyle="Solid" BorderWidth = "1px"/>
                </asp:BoundField>
                <asp:BoundField DataField="TransMoney" HeaderText="Trans. Money" 
                    SortExpression="TransMoney">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" BorderStyle="Solid" BorderWidth = "1px"/>
                </asp:BoundField>
                <asp:BoundField DataField="SoDuTaiKhoan" HeaderText="So Du Tai Khoan" 
                    SortExpression="SoDuTaiKhoan">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" BorderStyle="Solid" BorderWidth = "1px"/>
                </asp:BoundField>
            </Columns>
            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <AlternatingRowStyle BackColor="#F7F7F7" />
        </asp:GridView>
</div>
</asp:Content>

